#include<stdio.h>

int final;

int main(void)
{
        int a[5] = {0, 0, 0, 0, 1};
        //int i=getchar();
        int i;
        int temp=0;

        scanf("%i", &i);
        printf("%d\n", i);
        
        // check should be here; possibly causing an exception
        temp=a[i];

        // redundant 
        a[i-1]=a[i];

        // redundant
        a[i]=temp;

        final = temp;
        return 0;
}
